/**
 * 描述: 审计系统查询协议中涉及的查询类型
 * 版权:	 Copyright (c) 2012
 * 公司:	 bjaxt
 * 作者:	 黄旺
 * 版本:	 1.0
 * 创建日期: 2012-5-9
 */

package com.axt.dbaudit.base;

public class QueryType {
	public static final int QUERY_TYPE = 0x0100;
	public static final int QUERY_T_ALARM     = 0x0101; /* 实时报警查询 */
    public static final int QUERY_T_SESSION   = 0x0102; /* 会话列表查询 */
    public static final int QUERY_T_STMT      = 0x0103; /* 语句列表查询 */
    
    public static final int QUERY_T_ALARM_IDX = 0x0111; /* 报警索引查询 */
    public static final int QUERY_T_SES_IDX   = 0x0112; /* 会话索引查询 */
    public static final int QUERY_T_STMT_IDX  = 0x0113; /* 语句索引查询 */

	public static final int QUERY_T_REALALARM = 0x0109; /* 查询实时报警 */

	public static final int QUERY_T_SES_HEAD	= 0x0104; /* 会话公共信息 */
	public static final int QUERY_T_SES_DETAIL  = 0x0105; /* 会话详细信息 */
	public static final int QUERY_T_ALARM_DETAIL	= 0x0106; /* 报警详细信息查询 给定AlarmId */
	public static final int QUERY_T_STMT_DETAIL	= 0x0107; /* 语句详细信息查询 给定SqlId和SessionId */
	public static final int QUERY_T_STMT_ALARM	= 0x0108; /* 语句的报警信息 给定sqlid */

    public static final int QUERY_T_FZ_TRANS 	= 0x010A; /* fz插件：查询开票 */

    /* 统计请求 */
    public static final int STAT              = 0x0200;

    public static final int STAT_T_LOGIN      = 0x0210; /* 登录统计 */
    public static final int STAT_T_SLOGIN     = 0x0211; /* 成功登录统计 */
    public static final int STAT_T_FLOGIN     = 0x0212; /* 失败登录统计 */

    public static final int STAT_T_OPER       = 0x0220; /* 操作统计 */
    public static final int STAT_T_DDL_OPER   = 0x0420; /* DDL统计  */
	public static final int STAT_T_DDCREATE_OPER  = 0x0421; /* create统计  */
	public static final int STAT_T_DDDROP_OPER	= 0x0422; /* dorp */
	public static final int STAT_T_DDALTER_OPER	= 0x0423; /* alter */
	public static final int STAT_T_DDREPLACE_OPER	= 0x0424; /* replace */
	public static final int STAT_T_DDTRUNCATE_OPER= 0x0425; /* truncate */

    public static final int STAT_T_DML_OPER   = 0x0440; /* DML统计  */
	public static final int STAT_T_DMSELECT_OPER   = 0x0441; /* select */
	public static final int STAT_T_DMINSERT_OPER   = 0x0442; /* insert */
	public static final int STAT_T_DMUPDATE_OPER   = 0x0443; /* update */
	public static final int STAT_T_DMDELETE_OPER   = 0x0444; /* delete */
	public static final int STAT_T_DMCALL_OPER     = 0x0445; /* CALL */
	public static final int STAT_T_DMSET_OPER		 = 0x0446; /* SET */

    public static final int STAT_T_DCL_OPER   = 0x0460; /* DCL统计  */
	public static final int STAT_T_DCGRANT_OPER   = 0x0461; /* GRANT */
	public static final int STAT_T_DCREVOKE_OPER  = 0x0462; /* REVOKE */
	public static final int STAT_T_DCDENY_OPER    = 0x0463; /* DENY */
	public static final int STAT_T_DCTRANB_OPER   = 0x0464; /* TRANB */
	public static final int STAT_T_DCTRANC_OPER   = 0x0465; /* TRANC */
	public static final int STAT_T_DCTRANRB_OPER  = 0x0466; /* TRANRB */
	public static final int STAT_T_DCDECLARE_OPER = 0x0467; /* DECLARE */


    public static final int STAT_T_SDB_OPER 		= 0x0480; /* 数据库特有操作统计  */
	public static final int STAT_T_SDBDESC_OPER 	= 0x0481; /* desc */
	public static final int STAT_T_SDBCC_OPER 	= 0x0482; /* dbcc */
	public static final int STAT_T_SBACKUP_OPER 	= 0x0483; /* backup */
	public static final int STAT_T_SRESTORE_OPER 	= 0x0484; /* restore */
	public static final int STAT_T_SMERGE_OPER 	= 0x0485; /* merge */
	public static final int STAT_T_SIMP_OPER 		= 0x0486; /* imp */
	public static final int STAT_T_SEXP_OPER 		= 0x0487; /* exp */

    public static final int STAT_T_FLOW       = 0x0230; /* 流量统计 */
    public static final int STAT_T_SVR_FLOW   = 0x0231; /* 服务器流量 */
    public static final int STAT_T_CLI_FLOW   = 0x0232; /* 客户端流量 */

    public static final int STAT_T_ALARM      = 0x0240; /* 报警统计 */
    public static final int STAT_T_HIGH_ALARM = 0x0241; /* 高报警统计 */
    public static final int STAT_T_MID_ALARM  = 0x0242; /* 中报警统计 */
    public static final int STAT_T_LOW_ALARM  = 0x0243; /* 低报警统计 */

    public static final int STAT_T_FZ_TRANS 	= 0x0250; /* fz插件：统计报税 */
}
